package com.xzzz.common.lb;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.cloud.loadbalancer.config.LoadBalancerAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wangyf
 */
@Configuration
@ConditionalOnClass(value = LoadBalancerAutoConfiguration.class)
public class LBConfig {
    
    @Bean
    public LoadBalancerController loadBalancerController() {
        return new LoadBalancerController();
    }
}
